package com.maze;

import java.io.*;
import java.util.*;

class Main {
    public final static int SIZE = 10;
    // 迷宫最多行
    public final static int MAX_ROW = 10;
    // 迷宫最多列
    public final static int MAX_COL = 10;

    enum DIR {DIR_UP, DIR_DOWN, DIR_LEFT, DIR_RIGHT}

    public static void main(String[] args) {
//		Map<Position, CELL> cell = new HashMap<Position,CELL>();
        // 读取CSV文件
        String strPath = System.getProperty("user.dir").concat("/csv/");
        File file = new File(strPath + "maze1.csv");
        // 构建迷宫
        Map<Position, CELL> cell = ReadCsv.readCsv(file);
        // 查询最短路径
        Maze maze = new Maze(file, MAX_ROW, MAX_COL);
        List<Position> list =maze.seachWay();

        // 画图
        MakeMaze make = new MakeMaze(SIZE, cell);
    }


}
